package com.chumi.bootstrap.controller.ba;

import java.io.IOException;
import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.chumi.bootstrap.model.standard.ba.BaGroup;
import com.chumi.bootstrap.service.ba.BaGroupService;
import com.llsfw.core.controller.base.BaseController;

@Controller
@RequestMapping("BaGroupController")
public class BaGroupController extends BaseController {

    @Autowired
    private BaGroupService bgs;

    @RequestMapping("getGroupList")
	@ResponseBody
    public List<BaGroup> getGroupList(HttpServletRequest request) throws IOException{
    	List<BaGroup> grouplist = bgs.getGroupList();  	
		return grouplist; 
    }    
}
